<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>检品</title>
<link href="/examine/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="/examine/Public/admin/js/jquery.js"></script> 

<link href="/examine/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/examine/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/examine/Public/admin/js/select-ui.min.js"></script>
 
 
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('product/detail');?>">查看特定检品</a></li> 
		</ul>
    </div> 
    <div class="formbody"> 
		<div class="formtitle"><span>查看特定检品</span></div> 
		<form name="myform" id="myform" action="<?php echo U('product/detail');?>" method="post">
			<ul class="forminfo">
				<li><label>输入检品代码</label><input value="<?=I('sncode')?>" name="sncode" type="text" class="dfinput" /></li> 
				<li><label>&nbsp;</label><input name="btn" type="submit" class="btn" value="查询"/></li>
				<?php if($matter):?> 
				<li><label>物料名称</label><input value="<?=$matter['mat_title']?>"  type="text" class="dfinput" readonly/></li> 
				<li><label>物料级别</label><input value="<?=$matter['level_title']?>" name="" type="text" class="dfinput" readonly/></li> 
				<li><label>型号规格</label><input value="<?=$matter['mat_model']?>" name="" type="text" class="dfinput" readonly/></li>  
				<li><label>&nbsp;</label><input name="btn" type="button" onclick="location.href='<?php echo U('product/add',array('mat_id'=>$matter['mat_id'],'sncode'=>$listinfo[0]['sncode']));?>'" class="btn" value="快速添加"/></li>
				<?php endif;?>
			</ul>
		</form>
    <table class="tablelist">
			<thead>
				<tr> 
					<th>编号</th> 
					<th>S/N编码</th> 
					<th>现象描述</th> 
					<th>级别</th> 
					<th>屏型号</th> 
					<th>箱号</th> 
					<th>检验时间</th> 
					<th>检验员</th> 
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$content): $mod = ($i % 2 );++$i;?><tr> 
					<td><?php echo ($content["product_id"]); ?></td>
					<td><?php echo ($content["sncode"]); ?></td>
					<td><?php echo ($content["remarks"]); ?></td>
					<td><?php echo ($content["level"]); ?></td>
					<td><?php echo ($content["model"]); ?></td>
					<td><?php echo ($content["cncode"]); ?></td>
					<td><?php echo (date("Y-m-d H:i:s",$content["addtime"])); ?></td>
					<td><?php echo ($content["realname"]); ?></td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table> 
		<?php echo ($pageshow); ?> 
    </div>

	 
</body>

</html>